<?php
/**
 * @author shuang
 * @date 2016-10-26 14:16:07
 */
$this->registerCssFile('/css/message.css');
?>
<?php if ($data): ?>
    <div class="sys-msg-block">
        <div class="title">
            <span><?php echo $data->title; ?></span>
            <small><?php echo Yii::$app->formatter->asDatetime($data->created_at);?></small>
        </div>
        <p><?php echo $data->content; ?></p>
    </div>
<?php endif; ?>